package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

/**
 * 退款审核枚举
 */
enum class OrderRefundAuditStatus(private val value: Short, val desc: String) : IEnum<Short> {
    UNAUDITED(0, "未审核"),
    APPROVE(1, "通过"),
    REJECT(2, "拒绝");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}